package com.manage.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 成果附件表
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_achieve_file")
public class AchieveFileEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 成果关联附件ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "成果关联附件ID")
    private Long id;

    /**
     * 成果ID
     */
    @Schema(description = "成果ID")
    private Long achieveId;

    /**
     * 附件URL
     */
    @Schema(description = "附件URL")
    private String fileUrl;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private String createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private String updateTime;

    /**
     * 是否删除(0=否,1=是)
     */
    @TableLogic
    @Schema(description = "是否删除(0=否,1=是)")
    private Integer isDeleted;
}
